package com.controller;

import com.dto.DicSysDTO;
import com.service.DicSysServiceImpl;
import com.util.Result;
import com.util.ResultUtil;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author linyukun
 * @date 2022/7/20 17:18
 */
@RequestMapping("sysDic")
@RestController
public class DicSysController {

    @Autowired
    private DicSysServiceImpl dicSysServiceImpl;

    @PostMapping("/get_by_type")
    public Result getByType(@RequestBody DicSysDTO dto) {
        return ResultUtil.returnDataSuccess(dicSysServiceImpl.getByType(dto));
    }

}
